Skip to content

Conversation

@cmaloney
Copy link
Contributor

@cmaloney cmaloney commented Nov 26, 2025

Removes a copy going from bytearray to bytes.

cc: @serhiy-storchaka

Removes a copy going from bytearray to bytes.
@vstinner vstinner changed the title gh-141968: Use take_byes in re._compiler gh-141968: Use take_bytes in re._compiler Nov 27, 2025
Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

…139Pv.rst

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@vstinner vstinner enabled auto-merge (squash) November 28, 2025 17:19
@vstinner vstinner merged commit 3001464 into python:main Nov 28, 2025
46 checks passed
@cmaloney cmaloney deleted the re_take_bytes branch November 28, 2025 19:53
@cmaloney
Copy link
Contributor Author

@picnixz 👍 thanks for spotting the :func: vs :meth:, looking through these I have 6 other cases in the repository, would it make sense for me to make a PR to fix them?

@picnixz
Copy link
Member

picnixz commented Nov 28, 2025

Yes please do so. I'll accept the change. It's good to keep roles with the correct semantics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants